{% extends 'layout/main.html' %}
{% from 'macros/_macros.html' import form_field %}
{% block content_header %}
    <h1>
      创建用户
    </h1>
    <ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="#">用户管理</a></li>
    <li class="active">创建用户</li>
    </ol>
{% endblock %}



{% block content %}
<div class="box">
  <!-- /.box-header -->
  <div class="box-body">

      <form method="post" action="">
        {{ form.csrf_token }}
        <input id="thumb" name="thumb" type="hidden">
        {{ form_field(form.username, placeholder='用户名', class_='form-control')}}
        {{ form_field(form.password, placeholder='密码', class_='form-control')}}
        {{ form_field(form.password2, placeholder='确认密码', class_='form-control')}}
        {{ form_field(form.nickname, placeholder='昵称', class_='form-control')}}
        {{ form_field(form.role_id, class_='form-control')}}
        {{ form.submit(class_='btn btn-primary') }}
      </form>
  </div>
</div>

{% endblock %}